package com.commerce.img;

import android.app.Application;
import android.widget.ImageView;

import com.commerce.img.entity.DataUrl;
import com.commerce.img.tools.JsonToList;

import java.util.ArrayList;
import java.util.List;

public class MyAppData extends Application {

    private static List<DataUrl.ImgdataBean> list= new ArrayList<>();
    private static List<DataUrl.ImgdataBean> listClone= new ArrayList<>();
    private static int i ;
    private static ImageView imageView;

    @Override
    public void onCreate() {
        DataUrl dataUrl= new JsonToList().JsonToList(this);
        for (DataUrl.ImgdataBean data:dataUrl.getImgdata()){
            list.add(data);
        }
        super.onCreate();
    }

    public List<DataUrl.ImgdataBean> getList(){
        return list;
    }

    public void setI(int i){
       this.i=i;
    }

    public int getI(){
        return i;
    }

    public void setImageView(ImageView view){
        imageView  = view;
    }

    public ImageView getImageView(){
        return imageView;
    }

    public List<DataUrl.ImgdataBean> getListClone(){
        return listClone;
    }

    public void setListClone(List<DataUrl.ImgdataBean> listClone){
        this.listClone = listClone;
    }
}
